﻿using System;

namespace Matrix.MaKaYunShang.Model
{
    /// <summary>
    ///马云卡发放规则细则表
    /// </summary>
    public class CardRuleDetail
    {
        #region 默认属性
        /// <summary>
        /// 自增id
        /// </summary>		
        public int Id { get; set; }
        /// <summary>
        /// 卡卷发放规则表id
        /// </summary>		
        public int RuleBaseId { get; set; }
        /// <summary>
        /// 马云卡卡卷id
        /// </summary>		
        public int CloudCardId { get; set; }
        /// <summary>
        /// 卡卷已发送数量
        /// </summary>		
        public int CardSendQuantity { get; set; }
        /// <summary>
        /// 卡卷可发送数量
        /// </summary>		
        public int CardTotalQuantity { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>		
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 是否已删除（True已删除，False未删除）
        /// </summary>		
        public bool IsDelete { get; set; }
        #endregion

        #region 扩展属性
        /// <summary>
        /// 价值
        /// </summary>
        public decimal CardValue { get; set; }

        /// <summary>
        /// 奖品类别
        /// </summary>
        public string CategoryCode { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int TotalQuantity { get; set; }
        /// <summary>
        /// 已发数量
        /// </summary>
        public int SendQuantity { get; set; }
        /// <summary>
        /// 卡卷logo
        /// </summary>
        public string LoGo { get; set; }
        /// <summary>
        /// 卡卷标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 卡卷名称
        /// </summary>
        public string CardName { get; set; }
        public string Latitude { get; set; }
        public string Longitude { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string ShopName { get; set; }
        public int ShopId { get; set; }
        /// <summary>
        /// 是否为总部
        /// </summary>		
        public bool IsHeadquarters { get; set; }
        /// <summary>
        /// 总部Id
        /// </summary>		
        public int ParentShopId { get; set; }
        /// <summary>
        /// 是否显示在主页
        /// </summary>
        public bool ShowOnHomepage { get; set; }

        public string Instruction { get;set; }
        /// <summary>
        /// 不可发卡的细分行业类别（逗号分隔）
        /// </summary>		
        public string DisabledSeparatedIndustryIds { get; set; }
        #endregion
    }
}